package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.SysUser;

import java.text.ParseException;
import java.util.List;

/**
 * @program: itcast_health
 * @create: 2019-10-17 18:32
 * @author: li he
 * @description:
 */
public interface UserService {
    SysUser loadUserByUsername(String username);

    //分页查询 用户列表数据
    PageResult findPage(QueryPageBean queryPageBean) throws ParseException;

    //新增用户
    void add(Integer[] roleIds, SysUser sysUser);

    //根据id 查询用户数据
    SysUser findById(Integer id);

    //根据用户id 查询 用户关联的角色id
    List<Integer> findRoleIdAssociationUserIds(Integer id);

    //编辑用户信息
    void edit(Integer[] roleIds, SysUser sysUser);

    //删除指定id的用户
    void delById(Integer id);
}